package com.quick.develop.flowable.domain.entrust;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.quick.develop.flowable.domain.BaseDO;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;

import java.util.Date;

import static com.quick.develop.framework.utils.DateUtils.TIME_ZONE_DEFAULT;
import static com.quick.develop.framework.utils.DateUtils.YYYY_MM_DD;

/**
 * @author junyuan.liu
 * @description: 委托
 * @date 2022/9/4 13:55
 */
@TableName(value = "BPM_ENTRUST_EX", autoResultMap = true)
@EqualsAndHashCode(callSuper = true)
@NoArgsConstructor
@AllArgsConstructor
@Data
public class BpmEntrustEx extends BaseDO {
    private static final long serialVersionUID = 1274289819161938094L;

    @TableId(value="id",type = IdType.AUTO)
    private Long id;

    private String modelKey;

    private String modelName;
    
    @JsonFormat(pattern = YYYY_MM_DD,timezone = TIME_ZONE_DEFAULT)
    private Date startDate;
    
    @JsonFormat(pattern = YYYY_MM_DD,timezone = TIME_ZONE_DEFAULT)
    private Date endDate;
    
    private String entrustToUser;
    
    private String entrustToUserName;
    
    private String remark;
}
